package org.lab.indicator;

import java.util.HashMap;

import org.lab.data.Ticker;

public class Indicator implements IIndicator{

	protected String desc = "Description";
	protected String name = "Name";
	protected HashMap<String, Parameter> params = new HashMap<String, Parameter>();
	protected Ticker ticker;
	
	@Override
	public String getDescription() {
		return desc;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Parameter getParameter(String name) {
		return params.get(name);
	}

	@Override
	public HashMap<String, Parameter> getParameters() {
		return params;
	}

	@Override
	public void setParameter(Parameter param) {
		params.put(param.getName(), param);
	}

	public HashMap<String, Parameter> getParams() {
		return params;
	}

	public void setParams(HashMap<String, Parameter> params) {
		this.params = params;
	}
}